﻿<%@ Page MasterPageFile="Site1.Master" Language="C#" AutoEventWireup="true" CodeBehind="MyOrder.aspx.cs" Inherits="EqRepair.Web.MyOrder" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cphMainContent" runat="server">

    <asp:Panel ID="PanelOrd" runat="server">
            <asp:GridView ID="GridViewOrd" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" GridLines="None" AllowSorting="True" 
                onselectedindexchanged="GridViewOrd_SelectedIndexChanged" >
                <RowStyle BackColor="#EFF3FB" />
                <Columns>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:BoundField HeaderText="Код" DataField="Id" />
                    <asp:BoundField DataField="RequestId" HeaderText="Код заявки" />
                    <asp:BoundField HeaderText="Назначил" DataField="FullName" />
                    <asp:BoundField DataField="Comp" HeaderText="Организация" />
                    <asp:BoundField DataField="Equ" HeaderText="Оборудование" />
                    <asp:TemplateField HeaderText="Статус">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Status") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:DropDownList Enabled="false" ID="TextBox23" runat="server" Text='<%# Bind("Status") %>'>
                                <asp:ListItem Value="1">Новый</asp:ListItem>
                                <asp:ListItem Value="2">В работе</asp:ListItem>
                                <asp:ListItem Value="3">Выполнен</asp:ListItem>
                            </asp:DropDownList>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Descr" HeaderText="Описание заявки" />
                    <asp:BoundField DataField="Time" HeaderText="Плановое время работы" />
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:Button ID="ButtonOrdFin" runat="server" Text="Печать" 
                OnClick="ButtonOrdFin_Click" />
            <asp:Label ID="Info" runat="server"></asp:Label>
        </asp:Panel>

</asp:Content>